/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package control.accion;

import control.SIRHApp;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;

/**
 *
 * @author tuareg
 */
public class PrestacionAdministrar extends AbstractAction {

    public PrestacionAdministrar() {
        super();
        putValue(Action.SHORT_DESCRIPTION, "Administre las Prestaciones");
        putValue(Action.LONG_DESCRIPTION, "Administre las prestaciones que se usan para la generación de la nómina");
        putValue(Action.SMALL_ICON,new javax.swing.ImageIcon(getClass().getResource("/frontera/recursos/prestacionesInfo.png")));
    }

    public void actionPerformed(ActionEvent e) {
        SIRHApp.getInstance().getVentanaPrincipal().getPestanasPrincipal().setSelectedComponent(SIRHApp.getInstance().getFactoryInterfaz().getPestanaNomina());
        SIRHApp.getInstance().getVentanaPrincipal().getPanelNominaPrincipal().setSelectedComponent(SIRHApp.getInstance().getFactoryInterfaz().getPanelPrestaciones().getParent());
    }



}
